
/*
 * object translations comes from '/web/bundles/user/js/translations/translations.js'
 */

function checkForgotPasswordForm(language)
{
    $('#forgot_password_username_error_msg').html(' ');
    var err = false;
    if(isEmpty('forgot_password_username') && isEmpty('forgot_password_email'))
    {
        err = true;
        $('#forgot_password_username_error_msg').append('<li>' + translations['messages'][language]['username_or_email_empty'] + '</li>');
    }
    
    if(!err)
        $('#forgotPasswordForm').submit();
}
